/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.com.minam.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 *
 * @author Willian
 */
@ControllerAdvice
public class ControlException {
    
    @Autowired
    private ParameterProperties parameterProperties;

    @ExceptionHandler(value = Exception.class)
    public String errorPage() {
        return parameterProperties.JSP_ERROR;
    }
}
